import React,{Suspense} from 'react';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { store } from './app/store';
import './index.css';
import {BrowserRouter} from 'react-router-dom'
import Router from './router';
const container = document.getElementById('root')!;
const root = createRoot(container);

root.render(
    <Provider store={store}>
      <Suspense>
        <BrowserRouter>
          <Router></Router>
        </BrowserRouter>
      </Suspense>
    </Provider>
);
